'use strict';

const util = require('../../libs/Utils');
const conn = require('../../libs/Conn');

module.exports = async function (params) {
    let insertObj = {
        content: params.Message,
        email: params.Email,
        real_name: params.name,
        tel: params.Subject,
    };
    let insertSql = `insert into t_feedback set ?`;
    let result = await conn(insertSql, [insertObj]);
    return {success: true, data: result};
};